package sixth.group.domain;

import java.util.Date;
import java.util.List;

public class Restaurant {
    private Integer rid;

    private String rusername;

    private String rpass;

    private String rname;

    private String raddress;

    private Integer rpermission;

    private Date ruptime;

    private List<Dishes> dishes;

    public List<Dishes> getDishes() {
        return dishes;
    }

    public void setDishes(List<Dishes> dishes) {
        this.dishes = dishes;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRusername() {
        return rusername;
    }

    public void setRusername(String rusername) {
        this.rusername = rusername;
    }

    public String getRpass() {
        return rpass;
    }

    public void setRpass(String rpass) {
        this.rpass = rpass;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getRaddress() {
        return raddress;
    }

    public void setRaddress(String raddress) {
        this.raddress = raddress;
    }

    public Integer getRpermission() {
        return rpermission;
    }

    public void setRpermission(Integer rpermission) {
        this.rpermission = rpermission;
    }

    public Date getRuptime() {
        return ruptime;
    }

    public void setRuptime(Date ruptime) {
        this.ruptime = ruptime;
    }

    //构造方法

    public Restaurant(String rusername, String rpass, String rname, String raddress) {
        this.rusername = rusername;
        this.rpass = rpass;
        this.rname = rname;
        this.raddress = raddress;
    }

    public Restaurant() {
    }

    @Override
    public String toString() {
        return "Restaurant{" +
                "rid=" + rid +
                ", rusername='" + rusername + '\'' +
                ", rpass='" + rpass + '\'' +
                ", rname='" + rname + '\'' +
                ", raddress='" + raddress + '\'' +
                ", rpermission=" + rpermission +
                ", ruptime=" + ruptime +
                ", dishes=" + dishes +
                '}';
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}